package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
@Entity
@Table(name = "t_bx_wlfl")
public class TBxWlfl implements Serializable {

    private Integer id;
    private String mc;
    private Integer sfqy;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "mc")
    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    @Basic
    @Column(name = "sfqy")
    public Integer getSfqy() {
        return sfqy;
    }

    public void setSfqy(Integer sfqy) {
        this.sfqy = sfqy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TBxWlfl tBxWlfl = (TBxWlfl) o;
        return Objects.equals(id, tBxWlfl.id) &&
                Objects.equals(mc, tBxWlfl.mc) &&
                Objects.equals(sfqy, tBxWlfl.sfqy);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, mc, sfqy);
    }
}
